package com.other.thread.energy;

public class EnergyTransferTest {
	
	public static final int BOX_AMOUNT = 100;
	public static final double INIT_ENERGY = 1000;
	public static void main(String[] args) {
		EnergySystem eng = new EnergySystem(BOX_AMOUNT, INIT_ENERGY);
		for (int i = 0; i < BOX_AMOUNT; i++) {
			EnergyTransferTask task = new EnergyTransferTask(eng, i, INIT_ENERGY);
			Thread t = new Thread(task,"Transfer_"+i);
			t.start();
		}
	}
}
